package com.cms.service;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;

import org.springframework.stereotype.Service;

import com.cms.constant.MainConstant;
import com.cms.entity.User;

/**
*@author:gang
*@version:
**/
@Service
public class LoginService {
	
	public void setSessionKey(HttpServletRequest request,User user){
		HttpSession session = request.getSession();
		session.setAttribute(MainConstant.SESSION_ID, user);
	}
}
